     let app=getApp()
     let wechatphoto=(near_id,goods_id)=>{
          wx.chooseMessageFile({
            count:1,
            type:'image',
            success: (res) => {
              console.log(res);
              
             let file=res.tempFiles[0].path
          
              wx.navigateTo({
                url: '/pages/edit6/edit6?near_id='+near_id+'&goods_id='+goods_id+'&flag=1'+"&file="+file
              })
              
            },
          })
     }
     let mobilephoto=(near_id,goods_id)=>{
           
               wx.navigateTo({
                url: '/pages/edit/edit?near_id='+near_id+'&goods_id='+goods_id,
              })
     }
     let rulephoto=(type,near_id,goods_id)=>{
      wx.navigateTo({
        url:"/pages/photoguifan/photoguifan?type="+type+"&near_id="+near_id+'&goods_id='+goods_id
      })
      
       
   
    }
  let wechatxueshengphoto=(near_id,goods_id)=>{
    wx.chooseMessageFile({
      count:2,
      type:'image',
      complete: (res) => {
        console.log(res);
        wx.navigateTo({
          url: '/pages/edit2/edit2?url1='+res.tempFiles[0].path+'&url2='+res.tempFiles[1].path+"&near_id="+near_id+'&goods_id='+goods_id,
        })
     
      },
    })
  }
  let mobilephotocanvas=(near_id,goods_id,type)=>{
      
                 wx.navigateTo({
                   url: '/pages/edit3/edit3?near_id='+near_id+'&goods_id='+goods_id+'&type='+type,
                 })
           
      
    
         
  }
  let mobilephotocanvas4=(near_id,goods_id)=>{
    wx.navigateTo({
      url:'/pages/edit4/edit4?near_id='+near_id+'&goods_id='+goods_id
    })
  
         
  }

    



      let photo={wechatphoto,mobilephoto,rulephoto,wechatxueshengphoto,mobilephotocanvas,mobilephotocanvas4}









     export default photo